package com.inter.mapper;

import com.inter.entity.common.Partner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PartnerMapper {

    int findPartnerCodeEixtOrNot(@Param("partnerCode") String partnerCode);

    void insertPartner(Partner partner);

    String findSecretByPartnerCode(@Param("partnerCode") String partnerCode);

    List<Partner> findPartnerCode();

    String findTokenByPartnerCode(@Param("partnerCode") String partnerCode);
}
